<p class="validateTips">请输入以下内容.</p>

<form id="couponForm" action="<?php echo URL::site("boCoupon/update")?>" method='post' enctype="multipart/form-data">
<?php echo Form::hidden("id",$result->id)?>
<table id="supplier" class="ui-widget ui-widget-content" width="100%">
	<tr>
		<td width="30%"><label>组别</label></td>
		<td width="70%">
			<select id="group" name="group" class="text ui-widget-content ui-corner-all">
				<option value="1" <?php if ($result->group == 1) echo "selected"?>>组别一</option>
				<option value="2" <?php if ($result->group == 2) echo "selected"?>>组别二</option>
			</select>
		</td>
	</tr>
	<tr>
		<td>小图片地址</td>
		<td><?php 
			if (!empty($result->smallpicture)){
					echo '<a target="_blank" href="'.URL::domain().COUPON_IMG_PATH.$result->smallpicture.'"><img src="'.URL::domain().COUPON_IMG_PATH.$result->smallpicture.'" style="height:14ps" width="200ps" /></a>';
				}
			echo Form::file('smallpicture', array('id'=>'smallpicture','class'=>'text ui-widget-content ui-corner-all'));
			?></td>
	</tr>
	<tr>
		<td>大图片地址</td>
		<td><?php 
			if (!empty($result->largepicture)){
					echo '<a target="_blank" href="'.URL::domain().COUPON_IMG_PATH.$result->largepicture.'"><img src="'.URL::domain().COUPON_IMG_PATH.$result->largepicture.'" style="height:14ps" width="200ps" /></a>';
				}
			echo Form::file('largepicture', array('id'=>'largepicture','class'=>'text ui-widget-content ui-corner-all'));
			?></td>
	</tr>
	<tr>
		<td>大图高度</td>
		<td><input type="text" name="height" id="height" class="text ui-widget-content ui-corner-all" value="<?php echo $result->height?>" /></td>
	</tr>
	<tr>
		<td>大图宽度</td>
		<td><input type="text" name="width" id="width" class="text ui-widget-content ui-corner-all" value="<?php echo $result->width?>" /></td>
	</tr>
	<tr>
		<td>显示顺序</td>
		<td><input type="text" name="sort" id="sort" class="text ui-widget-content ui-corner-all" value="<?php echo $result->sort?>" /></td>
	</tr>
	<tr>
		<td>备注</td>
		<td><textarea name="desc" id="desc" class="text ui-widget-content ui-corner-all desc"><?php echo $result->desc?></textarea></td>
	</tr>
</table>
</form>
